﻿using Surpass.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Surpass.Common.CustomException
{
    public class CustomSystemException:Exception
    {
        /// <summary>
        /// 响应状态码
        /// </summary>
        public ResponseCode Code { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        public object[] Args { get; set; }


        public CustomSystemException(string message, ResponseCode code, params object[] args) : base(message)
        {
            Code = code;
            Args = args;
        }
    }
}
